<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <img id="img" src="" alt="">
</body>

</html>
<script src="../../../layuiadmin/layui/layui.js"></script>
<script>
    layui.config({
        base: '../../../layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index', //主入口模块
        utilJs: '../lib/extend/utilJs',
        _role: '../lib/_role'
    }).use(['jquery', 'index', 'table', 'utilJs', '_role'], function () {
        var u = layui.utilJs,
            $ = layui.jquery;
        let tx = u.getQueryStringByName('url')
        $('#img').attr('src', tx)
        setTimeout(() => {
            var index = parent.layer.getFrameIndex(window.name);
            parent.layer.iframeAuto(index);
        }, 100)
    })
</script>
<style>
    body {
        margin: 0 !important
    }

    #img {
        width: 400px;
    }
</style>